<?php 

	$output = "";

	if( isset($_SESSION['user']) && $_SESSION['user'] != "" ){
		
		switch( $page ){
			case 'start':
				$output = "\t\t\t\t".'<ul>'."\n";
				$output.= "\t\t\t\t\t".'<li><a href="index.php?page=roster"><span>Dienstplan</span></a></li>'."\n";
				$output.= "\t\t\t\t\t".'<li><a href="index.php?page=management"><span>Verwaltung</span></a></li>'."\n";
				$output.= "\t\t\t\t\t".'<li><a href="admin/index.php"><span>Administration</span></a></li>'."\n";
				$output.= "\t\t\t\t".'</ul>'."\n";
				break;
			case 'roster':
				$output = "\t\t\t\t".'<ul>'."\n";
				$output.= "\t\t\t\t\t".'<li><a href="index.php"><span>Startseite</span></a></li>'."\n";
				$output.= "\t\t\t\t\t".'<li><a href="index.php?page=management"><span>Verwaltung</span></a></li>'."\n";
				$output.= "\t\t\t\t\t".'<li><a href="admin/index.php"><span>Administration</span></a></li>'."\n";
				$output.= "\t\t\t\t".'</ul>'."\n";
				break;
			case 'management':
				$output = "\t\t\t\t".'<ul>'."\n";
				$output.= "\t\t\t\t\t".'<li><a href="index.php"><span>Startseite</span></a></li>'."\n";
				$output.= "\t\t\t\t\t".'<li><a href="index.php?page=roster"><span>Dienstplan</span></a></li>'."\n";
				$output.= "\t\t\t\t\t".'<li><a href="admin/index.php"><span>Administration</span></a></li>'."\n";
				$output.= "\t\t\t\t".'</ul>'."\n";
		}
	
	}else{
		$output = "\t\t\t\t".'<span>nicht eingeloggt</span>'."\n";
	}
	
	echo $output;
?>